Repository navigation
Hold leaf ids at their own type so both routes agree - #38
Merged
Merged
Conversation
C1587S
commented
Nov 28, 2026
Member
- A leaf file carries a target's id in the type its weights artifact has, and the reduce stage gives it back the same way, so neither route converts an id and both end with the same dtypes and row order.
- A leaf records the type of each id, so one built from one copy of the targets is never refused against another over how a string is stored. Leaf format version 2, and older files ask to be written again.
- Checked on the cluster over 2,880 leaves: both routes agree bit for bit, and the first block measured 220.5 bytes a kept row against an estimate of 240.
Leaf format version 2 takes ids that are strings or integers, where version 1 took strings alone and refused every leaf of the GADM 2.0 artifacts, whose ID_1 and ID_2 are int64. Integers keep their width in the target table and the leaf files and sort by value, and the reduce stage gives the ids back in the artifact's type, so its statistics have the dtypes and row order of stage all. The target digest takes each field's type, with string and large_string one type, since the width of a string's offsets says nothing of the id, and the integer widths distinct.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.